<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head th:replace="admin/_fragments :: head(~{::title})">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>操作结果</title>
    <link rel="stylesheet" href="../static/lib/semantic/dist/semantic.min.css"/>
    <link rel="stylesheet" href="../static/css/me.css">
    <link rel="stylesheet" th:href="@{/css/global.css}" />
</head>
<body>
<!-- 导航 -->
<nav th:replace="_fragments :: menu(0)" class="ui inverted attached segment m-padded-tb-mini m-shadow-small">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header item">小圳博客</h2>
            <link rel="shortcut icon" href="../static/image/关于我.jpg" type="image/x-icon">
            <a href="#" class="m-item item m-mobile-hide"><i class="home icon"></i>首页</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="idea icon"></i>分类</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="tags icon"></i>标签</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="clone icon"></i>归档</a>
            <a href="#" class="m-item item m-mobile-hide"><i class="info icon"></i>关于我</a>
            <div class="right m-item m-mobile-hide menu">
                <div class="centre m-item right item m-mobile-hide">
                    <div class="ui icon input">
                        <input type="text" placeholder="Search..."/>
                        <i class="search link icon"></i>
                    </div>
                </div>
            </div>
            <a href="#" class="m-item item m-mobile-hide"><i class="info icon"></i>注册</a>
        </div>
        <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
            <i class="sidebar icon"></i>
        </a>
    </div>
</nav>


<!-- 内容 -->
<div class="main">
    <div class="container mt-5">
        <div class="jumbotron">
            <p class="lead" th:text="${msg}">您的账号已经激活成功,可以正常使用了!</p>
            <hr class="my-4">
            <p>
                系统会在 <span id="seconds" class="text-danger">8</span> 秒后自动跳转,
                您也可以点此 <a id="target" th:href="@{${target}}" class="text-primary">链接</a>, 手动跳转!
            </p>
        </div>
    </div>
</div>

<!--/*/<th:block th:replace="admin/_fragments :: script">/*/-->
<script src="../static/lib/jquery-3.2.1/jquery-3.2.1.min.js"></script>
<script src="../static/lib/semantic/dist/semantic.min.js"></script>
<!--/*/</th:block>/*/-->

<script>
<!--    自动跳转逻辑-->
    $(function(){
        setInterval(function(){
            var seconds = $("#seconds").text();
            $("#seconds").text(--seconds);
            if(seconds == 0) {
                location.href = $("#target").attr("href");
            }
        }, 1000);
    });
</script>
</body>
</html>